function GetXmlHttpObject(){
var xmlHttp=null;
try{
  xmlHttp=new XMLHttpRequest();
 }
catch (e) {
 try {
  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e){
  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp;
}


function check(value){
  xmlHttp=GetXmlHttpObject();
var url="GetAvailability";
url=url+"?uid="+value;
xmlHttp.onreadystatechange=function(){
    if(xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){
    var showdata = xmlHttp.responseText;
  
    document.getElementById("message").innerHTML= showdata;
    }

}
xmlHttp.open("GET",url,true);
xmlHttp.send(null)
return true;
}
